class Request < ActiveRecord::Base
  attr_accessor :car_brand, :car_model, :engine_type, :gearbox_type 
  has_one :cart, :dependent => :destroy
  belongs_to :car_brand
  belongs_to :car_model
  belongs_to :engine_type
  belongs_to :gearbox_type
  has_many :region_requests, :dependent => :destroy
  validates_presence_of :car_brand, :car_model, :year, :gsm, :email
end
